#pragma once
#ifndef _CSEARCHREQUESTPACKET_H_
#define _CSEARCHREQUESTPACKET_H_

#include "structs.h"

class CSearchRequestPacket //: public CBasicPacket
{
private:
	char* data;
	struct seaPacket packetData;
	char key[24];
	unsigned int size;
	void decipher(void);
	void parsePacket(void);
	void checkHash(void);
public:
	CSearchRequestPacket(void);
	~CSearchRequestPacket(void);

	char* getData(void);
	char* getKey(void);
	unsigned int getSize(void);
	struct seaPacket* getPacketData(void);
	
	void receiveFromSocket(SOCKET *s);
	void logPacket(void);
};
#endif